import Axios from '@/utils/request';

/**
 * 合同/协议统计
 */
export function contractHalfYear(data): Promise<any> {
    return Axios.post('/agent/task/contract/halfYear', data);
}

/**
 * 已办任务统计
 */
export function dealedList(data): Promise<any> {
    return Axios.post('/agent/task/dealed/list', data);
}

/**
 * 根据上传日期查询
 */
export function listByUploadDate(data): Promise<any> {
    return Axios.post('/agent/task/listByUploadDate', data);
}
/**
 * 根据生效日期查询
 */
export function listByeffectDate(data): Promise<any> {
    return Axios.post('/agent/task/listByeffectDate', data);
}

/**
 * 待办任务统计
 */
export function listByFundOptStatus(data): Promise<any> {
    return Axios.post('/agent/task/listByFundOptStatus', data);
}

/**
 * 任务明细数据
 */
export function taskDetail(data): Promise<any> {
    return Axios.post('/agent/task/detail', data);
}
/**
 * 状态修改
 */
export function taskStatusUpdate(data): Promise<any> {
    return Axios.post('/agent/task/status/update', data);
}

/**
 * 合同明细数据
 */
export function contractDetail(data): Promise<any> {
    return Axios.post('/agent/task/contract/detail', data);
}

/**
 * 合同下载
 */
export function contractDownload(data): Promise<any> {
    return Axios.post('/ledger/contract/download', data);
}

/**
 * 查询任务分工设置数据(当前主办人列表)
 */
export function taskSetting(data: any = {}): Promise<any> {
    return Axios.post('/agent/task/setting', data);
}
/**
 * 分工配置
 */
export function taskSettingUpdate(data): Promise<any> {
    return Axios.post('/agent/task/setting/update', data);
}

/**
 * 主办人数据查询（风险岗）
 */
export function settingUser(): Promise<any> {
    return Axios.post('/agent/task/setting/user', {});
}

/**
 * 主办人数据查询(当前主办人和历史主办人集合)
 */
export function taskDetailUser(): Promise<any> {
    return Axios.post('/agent/task/user', {});
}
